<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
  </head>
  <body>


    <script type="text/javascript">
      window.onload = function () {
        var str = 'aaaAAbb2啪啪啪啪'
        var patt = /[a-zA-Z]+/ig
        console.log(patt.exec(str));
      }
    </script>
  </body>
</html>
